/*  NVS: non volatile storage in flash
 *
 * Copyright (c) 2023 Liuis
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2023-09-03     Liuis        The first version.
 */
 
#ifndef __NVS_PORT_H_
#define __NVS_PORT_H_

#include "nvs.h"

#ifdef __cplusplus
extern "C"
{
#endif

/**
 * Port for nvs mutex lock and unlock
 */
#define     NVS_MUTEX_INIT(fs)
#define     NVS_MUTEX_LOCK(fs)
#define     NVS_MUTEX_UNLOCK(fs)

#if 1
#define     NVS_LOG_DBG             printf
#define     NVS_LOG_INF             printf
#define     NVS_LOG_ERR             printf
#else
#define     NVS_LOG_DBG(s)
#define     NVS_LOG_INF(s)
#define     NVS_LOG_ERR(s)
#endif

extern flash_parameters flash_param_on_chip;

#ifdef __cplusplus
}
#endif

#endif /* __NVS_CFG_H_ */
